import {
  createRouter,
  createWebHashHistory,
  type RouteRecordRaw,
} from "vue-router"
const routes: RouteRecordRaw[] = [
  {
    path: "/",
    component: () => import("@/layout/inde.vue"),
    redirect: "/dashboard",
    children: [
      {
        path: "dashboard",
        name: "Dashboard",
        component: () => import("@/views/Dashboard/index.vue"),
      },
    ],
  },
]

export default createRouter({
  routes, //路由表
  history: createWebHashHistory(),
})
